package com.meowcook.dao;

import com.meowcook.pojo.po.LikeRecipe;
import org.apache.ibatis.annotations.Param;

public interface LikeRecipeMapper {
    int insert(LikeRecipe row);

    int insertSelective(LikeRecipe row);

    LikeRecipe selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LikeRecipe row);

    int updateByPrimaryKey(LikeRecipe row);

    /**
     * 根据userId和recipeId查询
     * @param userId 用户id
     * @param recipeId 食谱id
     * @return Like
     */
    LikeRecipe selectByUserIdAndRecipeId(@Param("userId") Long userId, @Param("recipeId") Long recipeId);
}